
const defaultState = {
    count:1915,
    city:"美丽的武汉"
}
export const data = (state=defaultState,action)=>{
    switch(action.type){

        case "changeCount":
        return {...state,count:state.count+action.payload};
        break;

        default:
        return state;
        break;
    }
}